import request from '@/utils/request'
export default{
      //查询course基本信息
      getCourseInfoById(courseId) {
        return request({
          url: `/eduservice/front-course/course/${courseId}`,
          method: 'post'
        })
     },
    //查询所有subject
    getAllSubject() {
      return request({
        url: `/eduservice/front-subject/allSubject`,
        method: 'get'
      })
   },
   //分页课程查询
   getCourseList(current,pagesize,courseQuery) {
    return request({
      url: `/eduservice/front-course/page/${current}/${pagesize}`,
      method: 'post',
      data:courseQuery
    })
 }

}
